<template>
    <div class="roll">
        <div class="roll-header">
            <h3>{{ rollInfo.title }}</h3>
            <span class="all">{{ rollInfo.all }}<span class="iconfont icon-jiantouyou"></span></span>
        </div>
        <div class="roll-main">
            <slot>默认内容</slot>
        </div>
    </div>
</template>
<script setup>
import { ref, reactive } from "vue"

const props = defineProps({
    rollInfo:Object
})

</script>
<style lang="less" scoped>
.roll{
  background: #fff;
  .roll-header {
    height: 40px;
    line-height: 40px;
    display: flex;
    h3 {
        flex: 1;
        font-size: 16px;
        font-weight: 400;
        text-align: left;
        padding-left: 10px;
    }
    .all {
        flex: 1;
        text-align: right;
        font-size: 14px;
        color: #999;
        padding-right: 10px;

        span {
            font-size: 12px;
        }
    }
  }
  .roll-main{
    overflow-x: scroll;
    overflow-y: hidden;
    text-align: center;
    white-space: nowrap;
  }
}
</style>
